/**
 * 
 */
package com.rocky.project.model.admin;

import com.rocky.project.model.base.BaseEntity;

/**
 * @hibernate.class   table = "t_user"  dynamic-insert = "true" dynamic-update = "true" polymorphism="explicit"
 */
public class User extends BaseEntity {

	private static final long serialVersionUID = -7530511442824648517L;	
	private String username; //用户名
	private String password;//密码
	private String status="active";//是否启用  active deactive
	private String type;//AdminUser  Family  Person
	
	private UserRoleR userRoleR;//用户角色
	/**
	 * @hibernate.property column = "c_password" type = "string" 
	 */	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	/**
	 * @hibernate.property column = "c_username" type = "string" 
	 */		
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	
	/**
	 * @hibernate.one-to-one property-ref = "user"   not-null="false"
	 */	
	public UserRoleR getUserRoleR() {
		return userRoleR;
	}
	public void setUserRoleR(UserRoleR userRoleR) {
		this.userRoleR = userRoleR;
	}
	/**
	 *  @hibernate.property column="c_status"  type="string"
	 */		
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	/**
	 *  @hibernate.property column="c_type"  type="string"
	 */		
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}


}
